﻿using System;
using System.Collections.Generic;
using System.Text;
using System.AddIn.Pipeline;
using Bookvar.AddIns.Contracts;
using Bookvar.AddIns.AddInViews;
using Bookvar.ObjectModel;

[assembly: System.Security.AllowPartiallyTrustedCallers]
namespace Bookvar.AddIns.AddinAdapters
{
    [AddInAdapter]
    public class BookvarViewToContractAddinAdapter : ContractBase, IBookvarContract
    {
        private BookvarAddinView view;

        public BookvarViewToContractAddinAdapter(BookvarAddinView view)
        {
            this.view = view;
        }

        public virtual void Execute(Topic topic)
        {
            view.Execute(topic);
        }

		#region IBookvarContract Members


		public virtual AddinInfo Info
		{
			get { return view.Info; }
		}

		#endregion
	}
}
